package com.asap.demo.interf;

import java.io.Serializable;
import java.util.Map;

/**
 * 
 * @author ww
 *
 */
public interface Event extends Serializable {

	
	/**
	 * 
	 * @param name name of field
	 * @return value of field
	 */
	String getField(String name);
	
	/**
	 * 
	 * @param name name of field
	 * @param value value of field
	 */
	void addField(String name, Object value);
	
	/**
	 * 
	 * @return All of fields
	 */
	Map<String, Object> getAllFields();
	
	/**
	 * 
	 * @return json of event
	 */
	String toString();

	void addMap(Map<String, Object> map);

	void delField(String field);
}
